package com.bnz.service.impl;

import com.bnz.mapper.ClassesMapper;
import com.bnz.pojo.Classes;
import com.bnz.service.ClassessService;
import com.bnz.util.MybatisUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

/**
 * 类名：
 * 作者：WF
 * 功能：
 */
public class ClassesServiceImpl implements ClassessService {
	@Override
	public List<Classes> findAll() {
		try(SqlSession session = MybatisUtil.getSqlSession()) {
			ClassesMapper classesMapper = session.getMapper(ClassesMapper.class);
			return classesMapper.selectByExample(null);
		}
	}
}
